#pragma once
//#include "cseaamp.h"
//#include "windows.h"
#include "CQueryTimer.h"
#include "CAction.h"

#define MEASURE_ID 12

class CMeasure :
	public CAction
{
public:
	CMeasure( void );
	CMeasure( CSeaAmp &seaAmp ) { Init( seaAmp ); }
	~CMeasure( void );

	bool Init( CSeaAmp &seaAmp ) { return CAction::Init( seaAmp, MEASURE_ID ); }

	void DoAct( void );

	double GetTimeInterval() {return timeInterval;}

private:

	double lastPosMotor;
	double lastVelMotor;

	double lastPosLoad;
	double lastVelLoad;

	double lastForceSet;
	double lastPositionSet;
	double lastVelocitySet;
	double lastvelForceSet;

	double timeInterval;

	CQueryTimer timer;

	//ofstream f_measure;


};
